import { createRouter, createWebHashHistory } from 'vue-router'
import FillSurvey from '@/views/FillSurvey.vue'
import SurveyList from '@/views/SurveyList.vue'
import Entry from '@/views/Index.vue'

const routes = [
  { path: '/', redirect: '/main' },
  { path: '/main', component: Entry },
  { path: '/fill', component: FillSurvey },
  { path: '/list', component: SurveyList }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
